package com.Lixiaoqian.Gulangyu.adapter

import android.support.v4.app.Fragment
import android.support.v4.app.FragmentManager
import android.support.v4.app.FragmentPagerAdapter

/**
 * Created by huangzhibo on 2018-02-26.
 * mail:1043202454@qq.com
 */
class FragmentAdapter(fm: FragmentManager?, var fragments: List<Fragment>) : FragmentPagerAdapter(fm) {

    override fun getCount(): Int {
        return fragments.size
    }

    override fun getItem(position: Int): Fragment {
        return fragments.get(position)
    }
}